package com.pattern.facade;

/**
 * @author 冯志立
 * @create 2019-11-01 16:33
 */
public class Stereo {//使用单例模式，饿汉式
    private static Stereo instance = new Stereo();

    public static Stereo getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("Stereo打开了");
    }
    public void off(){
        System.out.println("Stereo关闭了");
    }
    public void up(){
        System.out.println("Stereo音量调大");
    }
    public void down(){
        System.out.println("Stereo音量调小");
    }
}
